﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>自动启动文件下载</title>
</head>
<body>
<input type="button" name="down" value="download" onclick="javascript:window.location='http://localhost/myfile.rar';">
</body>
</html>